﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Utilities
{
    public class Logger
    {
        public static object Locker = new object();

        public static void Write(string message, ConsoleColor colorb, ConsoleColor colort)
        {
            
                Console.BackgroundColor = colorb;
                Console.ForegroundColor = colort;
                Console.Write(message);
                while (Console.CursorLeft < Console.BufferWidth - 1)
                {
                    Console.Write(" ");
                }
                Console.Write(" ");
            
        }

        public static void Basic(string message)
        {
            Write("[Basic] : " + message, ConsoleColor.Blue, ConsoleColor.White);
        }

        public static void Load(string message)
        {
            Write("[App] : " + message, ConsoleColor.DarkGreen, ConsoleColor.White);
        }

        public static void Loaded(string message)
        {
            Write("[App] : " + message, ConsoleColor.Green, ConsoleColor.DarkGreen);
        }

        public static void Error(string message)
        {
            Write("[Error] : " + message, ConsoleColor.Red, ConsoleColor.White);
        }

        public static void Warning(string message)
        {
            Write("[Warning] : " + message, ConsoleColor.Yellow, ConsoleColor.DarkYellow);
        }

        public static void Debug(string message)
        {
            Write("[Debug] : " + message, ConsoleColor.Magenta, ConsoleColor.DarkMagenta);
        }
    }
}
